﻿<%@ Register TagPrefix="ucCommon" TagName="Common" Src="../Common/Inc/Common.ascx" %>
<%@ Register TagPrefix="ucTop" TagName="Top" Src="../Common/Inc/Top.ascx" %>
<%@ Register TagPrefix="ucMenu" TagName="Menu" Src="../Common/Inc/Menu.ascx" %>
<%@ Register TagPrefix="ucTabTitle" TagName="TabTitle" Src="../Common/Inc/TabTitle.ascx" %>
<%@ Register TagPrefix="ucCopyright" TagName="Copyright" Src="../Common/Inc/Copyright.ascx" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Cfg2010r.aspx.cs" Inherits="Updms.Cfg.Cfg2010r" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>▒ UPDMS [Cfg2010r] ▒▒▒▒▒▒▒▒▒▒</title>
<ucCommon:Common id="Common" runat="server"></ucCommon:Common>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager runat="server" id="ScriptManager1" EnableScriptGlobalization="true"></asp:ScriptManager>

<table id="table_frame">
	<tr>
		<td id="top_area" colspan="2">
			<!-- Top 시작 -->
			<ucTop:Top id="Top" runat="server"></ucTop:Top>
			<!-- Top 끝 -->
		</td>
	</tr>
	<tr>
		<td id="menu_area" runat="server">
			<!-- 메뉴 시작 -->
			<ucMenu:Menu id="Menu" runat="server"></ucMenu:Menu>
			<!-- 메뉴 끝 -->
		</td>
		<td id="contents_area">
			<!-- 제목 시작 -->
			<ucTabTitle:TabTitle id="TabTitle" TagPrefixs="Cfg2010r" runat="server"></ucTabTitle:TabTitle>
			<!-- 제목 끝 -->
			<!-- AJAX 시작 -->
			<asp:UpdatePanel ID="UpdatePanel1" runat="server">
			<Triggers>
				<asp:PostBackTrigger ControlID="ibtn_excel"/>
			</Triggers>
			<ContentTemplate>
			<!-- 버튼 시작 -->
			<div class="button_area">
				<asp:linkbutton id="ibtn_excel" Text="엑셀" runat="server" CssClass="ibtn ibtn_excel" OnClick="ibtn_excel_Click"></asp:linkbutton>
				<asp:linkbutton id="ibtn_search" Text="검색" runat="server" CssClass="ibtn ibtn_search" OnClientClick="return chkSearch(event)" OnClick="ibtn_search_Click"></asp:linkbutton>
			</div>
			<!-- 버튼 끝 -->
			<!-- 검색 시작 -->
			<table class="table_search">
				<tr>
					<td class="lbl" width="11%"><asp:Literal ID="ltr_search_keyword" Text="키워드" runat="server" /></td>
					<td class="ctl" width="22%"><asp:textbox id="txt_search_keyword" runat="server" CssClass="ib_b req" Width="98%"></asp:textbox></td>
					<td class="ctl" width="66%"></td>
				</tr>
				<tr>
					<td class="lbl"><a href="javascript:void(0);" title="전체선택/해제" onclick="checkBoxCheckTable('cbl_search_pgm_class');"><u><asp:Literal ID="ltr_search_pgm_class" Text="분류" runat="server" /></u></a></td>
					<td class="ctl" colspan="2"><asp:CheckBoxList id="cbl_search_pgm_class" runat="server" RepeatDirection="Horizontal" CssClass="cbl_flow"></asp:CheckBoxList></td>
				</tr>
			</table>
			<!-- 검색 끝 -->
			<!-- 디테일1 시작 -->
			<!-- 디테일1 끝 -->
			<!-- 리스트셋 시작 -->
			<!-- 리스트셋 시작 -->
			<table cellpadding="0" cellspacing="0" border="0" width="100%">
			<tr>
				<td>
					<!-- 검색어 시작 -->
					<div class="div_left">Keyword : <asp:label id="lbl_search_keyword" runat="server"></asp:label></div>
					<div class="div_right"></div>
					<!-- 검색어 끝 -->
				</td>
			</tr>
			<tr>
				<td>
					<asp:GridView ID="GridView1" CssClass="table_gridview" GridLines="None" runat="server" AutoGenerateColumns="False" OnRowDataBound="GridView1_RowDataBound">
						<Columns>
							<asp:BoundField HeaderText="번호" >
								<ItemStyle HorizontalAlign="Center" Width="3%" />
							</asp:BoundField>
							<asp:BoundField DataField="Pgm_Class_Nm" HeaderText="분류" HtmlEncode="False" >
								<ItemStyle HorizontalAlign="Left" Width="7%" />
							</asp:BoundField>
							<asp:BoundField DataField="Pgm_Nm" HeaderText="프로그램" HtmlEncode="False" >
								<ItemStyle HorizontalAlign="Left" Width="10%" />
							</asp:BoundField>
							<asp:BoundField DataField="Contents" HeaderText="내용" HtmlEncode="False" >
								<ItemStyle HorizontalAlign="Left" Width="58%" />
							</asp:BoundField>
							<asp:BoundField DataField="Create_Dt" HeaderText="생성일"  DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" HtmlEncode="False" >
								<ItemStyle HorizontalAlign="Center" Width="11%" />
							</asp:BoundField>
							<asp:BoundField DataField="Update_Dt" HeaderText="수정일"  DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" HtmlEncode="False" >
								<ItemStyle HorizontalAlign="Center" Width="11%" />
							</asp:BoundField>
						</Columns>
						<EmptyDataTemplate>
							<div id="no_data"></div>
						</EmptyDataTemplate>
					</asp:GridView>
				</td>
			</tr>
			<tr>
				<td>
					<!-- 페이징 시작 -->
					<div class="div_left">Result : <asp:label id="lbl_result_count" runat="server"></asp:label></div>
					<!-- 페이징 끝 -->
				</td>
			</tr>
			</table>
			<!-- 리스트셋 끝 -->
			<!-- 설명 시작 -->
			<!-- 설명 끝 -->
			<!-- 카피라이트 시작 -->
			<ucCopyright:Copyright id="Copyright" runat="server"></ucCopyright:Copyright>
			<!-- 카피라이트 끝 -->
			<!-- 히든값 시작 -->
			<div id="hdn_data">
				<asp:label id="lbl_pk" runat="server"></asp:label>
				<asp:Label id="lbl_search_flag" runat="server"></asp:Label>
			</div>
			<!-- 히든값 끝 -->
			</ContentTemplate>
			</asp:UpdatePanel>
			<!-- AJAX 끝 -->
		</td>
	</tr>
</table>

<asp:updateprogress AssociatedUpdatePanelID="UpdatePanel1" ID="updateProgress" runat="server">
	<progresstemplate>
		<div id="progressBackgroundFilter"></div>
		<div id="processMessage">
			<div id="processing"></div>
			<img src="../Common/Images/processing_img.gif" />
		</div>
	</progresstemplate>
</asp:updateprogress>

</form>
<script type="text/javascript" language="javascript" defer="defer">
	//검색
	function chkSearch(evt) {
		var e = (!evt) ? window.event : evt;
		var keyCode = e.keyCode;

		if ($F("txt_search_keyword").blank()) {
			msgBox.alert(getMsg(MSG_ERR_197), setFocus, "txt_search_keyword", keyCode); //키워드를 입력해 주세요
			return false;
		}
		return true;
	}

	//엔터검색
	function enterSearchOnPage(evt) {
		var e = (!evt) ? window.event : evt;
		var keyCode = e.keyCode;

		if (keyCode == 13) {
			if (chkSearch(evt)) {
				__doPostBack('ibtn_search', '');
			}
		}
	}
</script>
</body>
</html>